gtk4.git
9 years agoUpdated Brazilian Portuguese translation
Rafael Fontenelle [Sat, 18 Jun 2016 00:29:01 +0000 (00:29 +0000)]
Updated Brazilian Portuguese translation

9 years agoUpdated Brazilian Portuguese translation
Rafael Fontenelle [Fri, 17 Jun 2016 23:53:20 +0000 (23:53 +0000)]
Updated Brazilian Portuguese translation

9 years agoconfigure: fix detecting CUPS 2.x
Misty De Meo [Thu, 16 Jun 2016 22:59:27 +0000 (15:59 -0700)]
configure: fix detecting CUPS 2.x

https://bugzilla.gnome.org/show_bug.cgi?id=767766

9 years agowayland: fall back to shm_open if memfd unavailable
Ray Strode [Thu, 12 May 2016 19:52:12 +0000 (15:52 -0400)]
wayland: fall back to shm_open if memfd unavailable

Debian stable currently ships with a 3.16 kernel, so
it doesn't have memfd available.

This commit adds shm_open fall back code for that case
(for now).

https://bugzilla.gnome.org/show_bug.cgi?id=766341

9 years agowayland: fix error handling for memfd_create
Ray Strode [Mon, 16 May 2016 14:20:10 +0000 (10:20 -0400)]
wayland: fix error handling for memfd_create

We currently use syscall() directly to invoke memfd_create,
since the function isn't available in libc headers yet.

The code, though, mishandles how errors are passed from syscall().
It assumes syscall returns the error code directly (but negative),
when in fact, syscall() uses errno.

Also, the code fails to retry on EINTR.

This commit moves the handling of memfd create to a helper function,
and changes the code to use errno and handle EINTR.

https://bugzilla.gnome.org/show_bug.cgi?id=766341

9 years agodocs: Fix a typo in GDK sections file
Krzesimir Nowak [Thu, 16 Jun 2016 10:19:54 +0000 (12:19 +0200)]
docs: Fix a typo in GDK sections file

9 years agoMention single-stop gradients in the release notes
Matthias Clasen [Thu, 9 Jun 2016 12:05:11 +0000 (08:05 -0400)]
Mention single-stop gradients in the release notes

This is something people stumble over in their custom CSS.

9 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 13 Jun 2016 13:17:11 +0000 (13:17 +0000)]
Updated Spanish translation

9 years agogdk: Unset the DrawingContext <-> cairo_t link on dispose
Emmanuele Bassi [Sun, 12 Jun 2016 17:55:34 +0000 (18:55 +0100)]
gdk: Unset the DrawingContext <-> cairo_t link on dispose

When disposing a GdkDrawingContext we should unset the association
between the instance and the Cairo context; this avoids stale pointers
in case a reference that has acquired on the Cairo context survives the
lifetime of the GdkDrawingContext.

9 years agogdk: Try harder at tracking drawing contexts
Emmanuele Bassi [Fri, 10 Jun 2016 16:00:29 +0000 (17:00 +0100)]
gdk: Try harder at tracking drawing contexts

If gdk_cairo_create() is called within a frame draw operation, we can
still associate the Cairo context with a GdkDrawingContext.

9 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Sat, 11 Jun 2016 07:54:43 +0000 (07:54 +0000)]
Updated Scottish Gaelic translation

9 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Fri, 10 Jun 2016 15:35:34 +0000 (15:35 +0000)]
Updated Scottish Gaelic translation

9 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Fri, 10 Jun 2016 15:15:27 +0000 (15:15 +0000)]
Updated Scottish Gaelic translation

9 years agoDeprecate gtk_widget_send_expose()
Emmanuele Bassi [Fri, 10 Jun 2016 12:55:30 +0000 (13:55 +0100)]
Deprecate gtk_widget_send_expose()

We have various replacements for what this function does, and we are not
calling it internally any more.

9 years agoscrolledwindow: Fix calls to gdk_window_move_resize()
Tristan Van Berkom [Fri, 10 Jun 2016 12:16:53 +0000 (21:16 +0900)]
scrolledwindow: Fix calls to gdk_window_move_resize()

This is a bit of fallout from 34feba1, now that we resolve
the has_indicators value earlier than realize, it becomes
possible to call gdk_window_move_resize() before realization.

Just added the appropriate checks.

9 years agodocs: point to suggested api for deprecated functions
Stefan Sauer [Thu, 9 Jun 2016 20:37:53 +0000 (22:37 +0200)]
docs: point to suggested api for deprecated functions

We deprecated a bunch of _focus_on_click() functions. Point to the new API
in GtkWidget.

9 years agodocs: Add deprecation notice for GtkButton.set_focus_on_click()
Emmanuele Bassi [Thu, 9 Jun 2016 20:35:36 +0000 (21:35 +0100)]
docs: Add deprecation notice for GtkButton.set_focus_on_click()

To match the deprecation annotation on the function declaration.

9 years agoAvoid a deprecation warning
Emmanuele Bassi [Thu, 9 Jun 2016 20:00:13 +0000 (21:00 +0100)]
Avoid a deprecation warning

Some debugging code in GdkWindow still calls gdk_cairo_create().

9 years agogdk: Deprecate gdk_cairo_create()
Emmanuele Bassi [Tue, 7 Jun 2016 16:06:47 +0000 (17:06 +0100)]
gdk: Deprecate gdk_cairo_create()

We have GdkDrawingContext, now, which is in charge of creating Cairo
contexts for drawing on a GdkWindow.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agogdk: Explicitly create a cairo context inside GdkDrawingContext
Emmanuele Bassi [Tue, 7 Jun 2016 15:52:50 +0000 (16:52 +0100)]
gdk: Explicitly create a cairo context inside GdkDrawingContext

Instead of using gdk_cairo_create(), which we'll soon deprecate.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agoDeprecate the gdk_window_begin/end_paint family of functions
Emmanuele Bassi [Tue, 7 Jun 2016 15:40:43 +0000 (16:40 +0100)]
Deprecate the gdk_window_begin/end_paint family of functions

They are replaced by the more appropriate gdk_window_begin_draw_frame()
and gdk_window_end_draw_frame() functions.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agoAssociate the drawing context to the Cairo context
Emmanuele Bassi [Tue, 7 Jun 2016 15:34:50 +0000 (16:34 +0100)]
Associate the drawing context to the Cairo context

Instead of associating the GdkWindow that created the GdkDrawingContext
we can directly bind the Cairo context to the GDK drawing context.

Cairo contexts created via gdk_cairo_create() go back to not having a
GdkWindow associated to them, like they did before we introduced the
gdk_window_begin_draw_frame() API.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agodocs: Add GdkDrawingContext to the GDK API reference
Emmanuele Bassi [Mon, 6 Jun 2016 11:30:46 +0000 (12:30 +0100)]
docs: Add GdkDrawingContext to the GDK API reference

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agoAdd GdkDrawingContext
Emmanuele Bassi [Mon, 30 May 2016 08:44:30 +0000 (09:44 +0100)]
Add GdkDrawingContext

Instead of giving out Cairo contexts, GdkWindow should provide a
"drawing context", which can then create Cairo contexts on demand; this
allows us to future proof the API for when we're going to use a
different rendering pipeline, like OpenGL.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agoSimplify the widget rendering entry point
Emmanuele Bassi [Fri, 20 May 2016 15:59:51 +0000 (16:59 +0100)]
Simplify the widget rendering entry point

Now that GDK has the appropriate API, we can simplify the widget drawing
code into a single function.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agoAdd frame drawing API to GdkWindow
Emmanuele Bassi [Fri, 20 May 2016 15:55:12 +0000 (16:55 +0100)]
Add frame drawing API to GdkWindow

Existing code drawing on a GDK window has to handle the direct drawing
and the buffered drawing by itself, by checking the window type and
whether or not the window is backed by a native windowing surface. After
that, the calling code has to create a Cairo context from the window and
keep an association between the context and the window itself.

This is completely unnecessary: GDK can determine whether or not it
should use a backing store to draw on a GdkWindow as well as create a
Cairo context, and keep track of it.

This allows to simplify the calling code, and enforce some of the
drawing behavior we want to guarantee to users.

https://bugzilla.gnome.org/show_bug.cgi?id=766675

9 years agoscrolledwindow test: Check natural width for max content size
Tristan Van Berkom [Tue, 7 Jun 2016 05:02:37 +0000 (14:02 +0900)]
scrolledwindow test: Check natural width for max content size

The maximum content size does not increase the minimum request
but only ensures that both minimum and natural requests do not
exceed the maximum setting.

9 years agoscrolledwindow: Resolve whether we use overlay scrollbars early.
Tristan Van Berkom [Tue, 7 Jun 2016 05:09:28 +0000 (14:09 +0900)]
scrolledwindow: Resolve whether we use overlay scrollbars early.

Widgets should support size requests before being realized in general,
otherwise this can cause flicker/resize at initial display time as
the toplevel window can make a request before realize/allocate.

This also makes the added testsuite/gtk/scrolledwindow.c test work again,
this was broken because we only ever calculate whether we are going
to use overlay scrollbars once the scrolled window is realized (and
the test case does not realize any window).

9 years agoscrolledwindow: Bug 766569 - General size request fixes.
Tristan Van Berkom [Tue, 7 Jun 2016 05:04:42 +0000 (14:04 +0900)]
scrolledwindow: Bug 766569 - General size request fixes.

This patch does a couple of things:

  o Removes the obscure 'extra_width' and 'extra_height' variables
    making the request code exceedingly difficult to read

  o Fixes the max-content-size properties introduced in bug 742281
    so that they do not grow the minimum request.

  o Cleanup of request code in general:
    - min/max content sizes are clamped around the child request as needed
    - scrollbar requests are only added in one place, after child request
      sizes are calculated and without the extra_width/height thing.

9 years agoFix build
Emmanuele Bassi [Wed, 8 Jun 2016 13:20:02 +0000 (14:20 +0100)]
Fix build

Commit 023f406c9617284ee3b88727df489f20cd066fd6 has a typo that results
in this error:

../../../testsuite/gtk/notify.c: In function 'test_type':
../../../testsuite/gtk/notify.c:679:54: error: expected expression
before ')' token
    (g_str_equal (pspec->name, "max-content-width") ||)
                                                      ^

9 years agowayland: Make sure window titles fit into a wl_buffer
Timm Bäder [Wed, 8 Jun 2016 05:31:45 +0000 (07:31 +0200)]
wayland: Make sure window titles fit into a wl_buffer

A wl_buffer has a max size of 4096 bytes, of which 8 are needed for the
header and another 4 for the string argument length (in this case), so
make sure the we only save the first 4083 bytes that are still valid
UTF8.

https://bugzilla.gnome.org/show_bug.cgi?id=767241

9 years agotest: Skip GtkScrolledWindow::max-content- properties
Matthias Clasen [Wed, 8 Jun 2016 13:03:12 +0000 (09:03 -0400)]
test: Skip GtkScrolledWindow::max-content- properties

The allowed values for the max-content- properties depend
on the value of the min-content- properties, in a way that
our simple test is not prepared to deal with. Just skip
them for now.

9 years agowayland: add extended state for tiled
Olivier Fourdan [Wed, 25 May 2016 13:07:51 +0000 (15:07 +0200)]
wayland: add extended state for tiled

xdg-shell allows desktop environments to extend the list of states
within a given range.

Use this possibility to add a new state for tiled so that gtk+ can
benefit from this.

https://bugzilla.gnome.org/show_bug.cgi?id=766860

9 years agoHC: focus outline more prominent
Jakub Steiner [Wed, 8 Jun 2016 10:15:55 +0000 (12:15 +0200)]
HC: focus outline more prominent

- make visible regardless of colors used
- make larger and more inset

https://bugzilla.gnome.org/show_bug.cgi?id=767310

9 years agoAdwaita: .osd button.color
Lapo Calamandrei [Wed, 8 Jun 2016 11:39:39 +0000 (13:39 +0200)]
Adwaita: .osd button.color

remove box-shadow from colorbutton colorswatch when an ancestor has
the osd styleclass applied.

9 years agoAdwaita: centralize outline-color
Lapo Calamandrei [Wed, 8 Jun 2016 11:28:07 +0000 (13:28 +0200)]
Adwaita: centralize outline-color

define outline-color generally using alpha(currentColor, 0.3),
which avoids setting it in a bunch of different places.

9 years agoMake gtk_scrolled_window_remove() smart
Kjell Ahlstedt [Wed, 8 Jun 2016 08:30:22 +0000 (10:30 +0200)]
Make gtk_scrolled_window_remove() smart

If gtk_scrolled_window_add() has added a GtkViewport,
  gtk_container_remove (GTK_CONTAINER (scrolled_window), child_widget);
or
  gtk_container_remove(GTK_CONTAINER(scrolled_window),
                       gtk_bin_get_child(GTK_BIN(scrolled_window)));
removes both the added child widget and the viewport.

https://bugzilla.gnome.org/show_bug.cgi?id=710471

9 years agoUpdate GtkLabel::angle docs
Matthias Clasen [Wed, 8 Jun 2016 03:40:32 +0000 (23:40 -0400)]
Update GtkLabel::angle docs

We can have wrapped or ellipsized labels at an angle nowadays.
Still no selections though.

9 years agoscale, spinbutton: Avoid -0.0
Matthias Clasen [Wed, 8 Jun 2016 03:04:40 +0000 (23:04 -0400)]
scale, spinbutton: Avoid -0.0

This is a very longstanding bug; time to finally put it to rest.

https://bugzilla.gnome.org/show_bug.cgi?id=118959

9 years agoEnsure that GtkRange allocates enough space for the value
Matthias Clasen [Wed, 8 Jun 2016 01:28:44 +0000 (21:28 -0400)]
Ensure that GtkRange allocates enough space for the value

This is a long-standing problem of GtkScale.

https://bugzilla.gnome.org/show_bug.cgi?id=766372
https://bugzilla.gnome.org/show_bug.cgi?id=578626
https://bugzilla.gnome.org/show_bug.cgi?id=79229

9 years agoFix preconditions in set_max_content_size setters
Matthias Clasen [Tue, 7 Jun 2016 20:35:06 +0000 (16:35 -0400)]
Fix preconditions in set_max_content_size setters

We must allow resetting the properties to -1.

9 years agowidget: Add classes to widget path even if no style context exists yet
Benjamin Otte [Tue, 7 Jun 2016 14:08:52 +0000 (16:08 +0200)]
widget: Add classes to widget path even if no style context exists yet

This removes leftover code from when classes where added to the style
context.
Now that they get added directly to css nodes, the classes can exist
without a style context.

https://bugzilla.gnome.org/show_bug.cgi?id=767312

9 years agosearchenginetracker: Fix prefix searches
Carlos Garnacho [Mon, 6 Jun 2016 22:27:19 +0000 (00:27 +0200)]
searchenginetracker: Fix prefix searches

With the FTS5 query syntax, when using quotes to delimit the search phrase
the '*' token must happen after the quote, or will otherwise be considered
a character to match, go through the tokenizer, and end up ignored in
result.

9 years agoRevert "scrolledwindow: Bug 766569 - Report child natural size unconditionally"
Matthias Clasen [Mon, 6 Jun 2016 18:29:27 +0000 (14:29 -0400)]
Revert "scrolledwindow: Bug 766569 - Report child natural size unconditionally"

This reverts commit 0943c9f6b2c3ad5827ae5d8f3742f75e72782e41.

The commit caused unexpected breakage in gtk3-widget-factory,
and also broke the just-added max-content-size properties.

9 years agowidget-factory: Use max-content-size in a popover
Matthias Clasen [Mon, 6 Jun 2016 18:33:25 +0000 (14:33 -0400)]
widget-factory: Use max-content-size in a popover

This gives a nice example of these properties in action,
in the "Open" popover on page 3.

9 years agoscrolledwindow: Bug 767238 - Fixing up for max content sizes
Tristan Van Berkom [Mon, 6 Jun 2016 02:55:44 +0000 (11:55 +0900)]
scrolledwindow: Bug 767238 - Fixing up for max content sizes

Needed to adjust this again after applying commit 4e5ecb7
for bug 742281. Now that we also have max content size properties,
pushed the addition of possible scrollbar sizes to after the
clause which clamps the child request size into min/max content
sizes.

9 years agoFix hiding popover when focus moves outside
Phillip Wood [Mon, 25 Apr 2016 12:16:21 +0000 (13:16 +0100)]
Fix hiding popover when focus moves outside

Commit a01fe14 changed the behaviour of popovers when the focus leaves
them to stop child popovers being hidden when the focus leaves their
parent. However they are now a bit too reluctant to hide - if the
focus passes to an unrelated popover the first popover is not
hidden. Also if the focus passes to another widget that does not
perform a gtk grab then the popover isn't hidden until the user
presses a non-movement key or clicks outside the popover.

The solution is to go back to checking if the focused widget is a
descendant of the popover, but to include popovers and their related
widgets in the ancestry chain.

https://bugzilla.gnome.org/show_bug.cgi?id=765595

9 years agoscrolledwindow: Bug 766569 - Report child natural size unconditionally
Tristan Van Berkom [Sat, 4 Jun 2016 11:57:23 +0000 (20:57 +0900)]
scrolledwindow: Bug 766569 - Report child natural size unconditionally

This patch causes the scrolled window default behavior to change in
such a way that the natural size request of the child is unconditionally
reported, which probably should have been the case since day 1.

This should not cause significant fallout since a scrolled window is
normally used to expand/fill, eating up remaining space for scrollable
content - it will however cause the scrolled window to compete for
additional space with siblings, proportionally to the size of the
scrolled window's content.

9 years agotreeview: fix an off-by-one error
Matthias Clasen [Mon, 6 Jun 2016 02:20:38 +0000 (22:20 -0400)]
treeview: fix an off-by-one error

gtk_tree_view_get_path_at_pos() mistakenly identifies the first
pixel of all but the first column in a tree view as belonging to
the previous column.

https://bugzilla.gnome.org/show_bug.cgi?id=708148

9 years agoobject test: Also test object type properties
Christian Dywan [Tue, 14 Oct 2008 12:33:00 +0000 (12:33 +0000)]
object test: Also test object type properties

Old patch found in bugzilla, it still applies and doesn't
cause the test to fail.

https://bugzilla.gnome.org/show_bug.cgi?id=556254

9 years agoMake gtk_tooltip_trigger_tooltip_query work again
Matthias Clasen [Mon, 6 Jun 2016 01:47:16 +0000 (21:47 -0400)]
Make gtk_tooltip_trigger_tooltip_query work again

This was broken ever since we started looking at the
source device of the event.

https://bugzilla.gnome.org/show_bug.cgi?id=674215

9 years agoinspector: Ellipsize accessible description.
Matthias Clasen [Mon, 6 Jun 2016 00:54:49 +0000 (20:54 -0400)]
inspector: Ellipsize accessible description.

This string can be long, and we don't want to break the ui

9 years agoviewport: Free gadgets in finalize
Matthias Clasen [Sun, 5 Jun 2016 23:36:36 +0000 (19:36 -0400)]
viewport: Free gadgets in finalize

This is the right place for this.

9 years agoscrolled window: Free gestures and gadgets in finalize
Matthias Clasen [Sun, 5 Jun 2016 23:36:09 +0000 (19:36 -0400)]
scrolled window: Free gestures and gadgets in finalize

This is the right place for this.

9 years agorange: Free gadgets in finalize
Matthias Clasen [Sun, 5 Jun 2016 23:35:36 +0000 (19:35 -0400)]
range: Free gadgets in finalize

This is the right place for this.

9 years agonotebook: Free gadgets in finalize
Matthias Clasen [Sun, 5 Jun 2016 23:35:12 +0000 (19:35 -0400)]
notebook: Free gadgets in finalize

This is the right place for this.

9 years agomenu: Free gadgets in finalize
Matthias Clasen [Sun, 5 Jun 2016 23:34:30 +0000 (19:34 -0400)]
menu: Free gadgets in finalize

This is the right place to do this.

9 years agobutton: Free gadgets and gestures in finalize
Matthias Clasen [Sun, 5 Jun 2016 23:33:21 +0000 (19:33 -0400)]
button: Free gadgets and gestures in finalize

This is the right place to free them.

9 years agotestsuite: add tests for scrolledwindow
Georges Basile Stavracas Neto [Fri, 3 Jun 2016 01:32:56 +0000 (22:32 -0300)]
testsuite: add tests for scrolledwindow

This patch adds a set of tests for scrolled window
sizing, covering both min- and max-content width and
height.

https://bugzilla.gnome.org/show_bug.cgi?id=742281

9 years agotests: adapt testscrolledwindow to have max content sizes
Georges Basile Stavracas Neto [Thu, 2 Jun 2016 02:32:35 +0000 (23:32 -0300)]
tests: adapt testscrolledwindow to have max content sizes

This patch adpats the current test to show a popover with
max-content-width and -height properties set.

https://bugzilla.gnome.org/show_bug.cgi?id=742281

9 years agoscrolledwindow: add ::max-content-width and -height properties
Georges Basile Stavracas Neto [Thu, 2 Jun 2016 02:18:37 +0000 (23:18 -0300)]
scrolledwindow: add ::max-content-width and -height properties

The GtkScrolledWindow has support to set the minimum content size (both
width and height) which controls the minimum space allocated, but does
not exposes any way to control the maximum size the content can grow.

After the introduction of GtkPopover, which always uses the minimum
size of it's children widgets, the lack of max-content-width and -height
properties became a concrete use case.

This patch introduces the GtkScrolledWindow::max-content-width and
-height properties. The properties will alter the minimum size of
the scrolled window, making it grow up to the set value. They also
respect the previously set ::min-content-width and -height.

https://bugzilla.gnome.org/show_bug.cgi?id=742281

9 years agoGDK W32: Fix dragging AeroSnap application
Руслан Ижбулатов [Sun, 5 Jun 2016 07:37:02 +0000 (07:37 +0000)]
GDK W32: Fix dragging AeroSnap application

The original patch for commit b420c53773ca5119afb43f0f351cb8f33c2bcaf9
was applied incorrectly, doing the actual snapping in the wrong place.
Move the code.

9 years agoprogressbar: Render text with the text css node
Matthias Clasen [Fri, 3 Jun 2016 20:30:00 +0000 (16:30 -0400)]
progressbar: Render text with the text css node

This is the same fix that was just applied to GtkScale.

9 years agoscale: Also queue a resize if font changes
Matthias Clasen [Fri, 3 Jun 2016 14:49:29 +0000 (10:49 -0400)]
scale: Also queue a resize if font changes

As Benjamin pointed out, what AFFECTS_FONT can also affect size,
but the implication is not automatic, so queue a resize manually.

9 years agogdktypes: Update docs for GDK_GRAB_FAILED
Pavel Grunt [Thu, 2 Jun 2016 13:35:38 +0000 (15:35 +0200)]
gdktypes: Update docs for GDK_GRAB_FAILED

Mention in documentation that it is available since 3.16

https://bugzilla.gnome.org/show_bug.cgi?id=767165

9 years agoscale: Apply css style to text
Matthias Clasen [Fri, 3 Jun 2016 04:30:59 +0000 (00:30 -0400)]
scale: Apply css style to text

Use the new functions we have to apply CSS styles to the
value and marks text from their respective subnodes.

9 years agoAdd a function to get a font from a css style
Matthias Clasen [Fri, 3 Jun 2016 04:29:05 +0000 (00:29 -0400)]
Add a function to get a font from a css style

Similar in spirit to
gtk_style_context_get (ctx, state, "font", ...)
but avoids the need for a style context.
This will be used to for css-styled text rendering
from css subnodes.

9 years agoAdd a function to turn a css style into pango attributes
Matthias Clasen [Fri, 3 Jun 2016 04:19:24 +0000 (00:19 -0400)]
Add a function to turn a css style into pango attributes

This is _gtk_style_context_get_pango_attributes, decoupled
from the GtkStyleContext. This will be used to drive css-styled
text rendering from css subnodes of widgets, e.g. for the value
in GtkScale.

9 years agowidget: Avoid a deprecation warning
Timm Bäder [Thu, 2 Jun 2016 19:52:11 +0000 (21:52 +0200)]
widget: Avoid a deprecation warning

9 years agoShow a scroll cursor when appropriate
Matthias Clasen [Wed, 1 Jun 2016 03:33:54 +0000 (23:33 -0400)]
Show a scroll cursor when appropriate

When doing two-finger scrolling or click scrolling using a
trackpoint, show the all-scroll cursor to indicate what is
going on.

https://bugzilla.gnome.org/show_bug.cgi?id=753202

9 years agowayland: Provide information about scroll devices
Matthias Clasen [Wed, 1 Jun 2016 03:14:30 +0000 (23:14 -0400)]
wayland: Provide information about scroll devices

The Wayland protocol does not share XI2's wealth of information
about individual devices, but it does provide discriminating
information about the source for scroll events. Pass this on to
the application by creating separate slave devices for these,
and setting them as source device on the scroll events.

These devices can be discriminated by their input-source property:
wheel      - GDK_SOURCE_MOUSE
finger     - GDK_SOURCE_TOUCHPAD
continuous - GDK_SOURCE_TRACKPOINT

https://bugzilla.gnome.org/show_bug.cgi?id=767093

fix up

9 years agoa11y tests: Update expected output
Matthias Clasen [Wed, 1 Jun 2016 18:18:46 +0000 (14:18 -0400)]
a11y tests: Update expected output

These changes were caused by the introduction of GtkStackAccessible.

9 years agobutton css node test: Update for switch style changes
Matthias Clasen [Wed, 1 Jun 2016 17:12:19 +0000 (13:12 -0400)]
button css node test: Update for switch style changes

We no longer add the redundant .slider style class in GtkSwitch.
Update expected results to reflect that.

9 years agocss node tests: Update expected results
Matthias Clasen [Wed, 1 Jun 2016 17:11:27 +0000 (13:11 -0400)]
css node tests: Update expected results

We were not propagating direction changes in some places,
evidently. Now we do.

9 years agopopover menu: Improved labeled separators
Matthias Clasen [Wed, 1 Jun 2016 15:52:20 +0000 (11:52 -0400)]
popover menu: Improved labeled separators

Embed the label in the middle of the separators instead of
putting it above the separator.

https://bugzilla.gnome.org/show_bug.cgi?id=767108

9 years agoSeparators not correctly placed
Bastien Nocera [Wed, 1 Jun 2016 13:58:22 +0000 (15:58 +0200)]
Separators not correctly placed

What it should look like:
  Bold
----
/Size/
  x 0.5
  x 1.0

What it looks like:
  Bold
  /Size/
----
  x 0.5
  x 1.0

https://bugzilla.gnome.org/show_bug.cgi?id=767108

9 years agoscrolled window: Remove trackpoint heuristics
Matthias Clasen [Wed, 1 Jun 2016 11:01:37 +0000 (07:01 -0400)]
scrolled window: Remove trackpoint heuristics

This is now done in GDK, so we can just use the input type here.

https://bugzilla.gnome.org/show_bug.cgi?id=767100

9 years agox11: Mark trackpoints as GDK_SOURCE_TRACKPOINT
Matthias Clasen [Wed, 1 Jun 2016 10:58:43 +0000 (06:58 -0400)]
x11: Mark trackpoints as GDK_SOURCE_TRACKPOINT

This uses the same heuristics that are currently used in
GtkScrolledWindow.

https://bugzilla.gnome.org/show_bug.cgi?id=767100

9 years agogdk: Add GDK_SOURCE_TRACKPOINT
Matthias Clasen [Wed, 1 Jun 2016 10:57:46 +0000 (06:57 -0400)]
gdk: Add GDK_SOURCE_TRACKPOINT

Having this as an input source type will let us do the heuristics
in the GDK backends.

https://bugzilla.gnome.org/show_bug.cgi?id=767100

9 years agoAvoid a deprecation warning
Matthias Clasen [Wed, 1 Jun 2016 11:00:18 +0000 (07:00 -0400)]
Avoid a deprecation warning

9 years agoheaderbar: do not show buttons for modals/transients
Olivier Fourdan [Tue, 31 May 2016 13:25:52 +0000 (15:25 +0200)]
headerbar: do not show buttons for modals/transients

GtkHeadeBar checks the window type hint to determine if the regular
buttons such as menu, maximize or iconify should be visible in the
header bar.

However, an application may very well use a "normal" toplevel window and
set it transient and modal afterwards. In such a case, the iconify
button would remain visible, and the user can hide the window, but being
a modal, the parent window would remain insensitive.

Check for the window type, modality and transient relationship to decide
whether or not the regular toplevel buttons should be visible in the
header bar.

https://bugzilla.gnome.org/show_bug.cgi?id=767052

9 years agowayland: Better debug info for scroll axes
Matthias Clasen [Wed, 1 Jun 2016 02:05:58 +0000 (22:05 -0400)]
wayland: Better debug info for scroll axes

Print human readable names for axes and axis sources.

9 years agodocs: Add a release note about GtkSizeGroup::ignore-hidden
Matthias Clasen [Tue, 31 May 2016 20:33:18 +0000 (16:33 -0400)]
docs: Add a release note about GtkSizeGroup::ignore-hidden

9 years agoGtkShortcutsSection: avoid deprecation warnings
Matthias Clasen [Tue, 31 May 2016 20:32:20 +0000 (16:32 -0400)]
GtkShortcutsSection: avoid deprecation warnings

We could just as well remove these calls here, since they
have no effect.

9 years agoDocument GtkSizeGroup::ignore-hidden as broken
Matthias Clasen [Tue, 31 May 2016 20:19:52 +0000 (16:19 -0400)]
Document GtkSizeGroup::ignore-hidden as broken

...and deprecate it, recommending GtkStack as an alternative.

9 years agoAdwaita: ensure menuitem labels are not overridden
Lapo Calamandrei [Tue, 31 May 2016 18:58:35 +0000 (20:58 +0200)]
Adwaita: ensure menuitem labels are not overridden

see https://bugzilla.gnome.org/show_bug.cgi?id=767058

9 years agoentry: Fix undershoot position wrt entry icons
Timm Bäder [Sun, 29 May 2016 16:34:35 +0000 (18:34 +0200)]
entry: Fix undershoot position wrt entry icons

Draw them inside of the icons, which is where the text scrolls.

9 years agoREADME: Refer to release notes online
Matthias Clasen [Tue, 31 May 2016 00:24:13 +0000 (20:24 -0400)]
README: Refer to release notes online

We don't want to maintain this information in two places,
so just link to the online documentation here.

9 years agodocs: Fix a duplicate ID
Matthias Clasen [Tue, 31 May 2016 00:21:48 +0000 (20:21 -0400)]
docs: Fix a duplicate ID

This was causing navigation in the online docs to be confused.

9 years agoAdd a warning for a broken situation
Matthias Clasen [Mon, 30 May 2016 20:14:36 +0000 (16:14 -0400)]
Add a warning for a broken situation

When we emit ::draw, the widget should not have alloc_needed set
anymore. If this happens, it indicates a broken situation. Add a
warning to help tracking down why this might occur.

See https://bugzilla.gnome.org/show_bug.cgi?id=765410

9 years agogtk3-demo: Fix some css warnings
Matthias Clasen [Mon, 30 May 2016 20:07:52 +0000 (16:07 -0400)]
gtk3-demo: Fix some css warnings

Update the font: syntax to follow css.

9 years agobuild: add GtkStack accessible private header at the right place
Timm Bäder [Mon, 30 May 2016 18:40:43 +0000 (20:40 +0200)]
build: add GtkStack accessible private header at the right place

9 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 30 May 2016 17:16:21 +0000 (19:16 +0200)]
Updated Spanish translation

9 years agorange: Properly indent closing brace
Timm Bäder [Sun, 22 May 2016 06:24:46 +0000 (08:24 +0200)]
range: Properly indent closing brace

Make sure it's obvious what if block it belongs to.

9 years agoAdd GtkStackAccessible
Timm Bäder [Sun, 29 May 2016 11:51:02 +0000 (13:51 +0200)]
Add GtkStackAccessible

Show only the currently visible child to a11y.

9 years agotests/scrolling-performance: Define MyTextView
Timm Bäder [Mon, 30 May 2016 06:59:46 +0000 (08:59 +0200)]
tests/scrolling-performance: Define MyTextView

The type is used in widget-factory.ui, so add a dummy definition here to
keep the test working.

9 years agoUpdated Occitan translation
Cédric Valmary [Mon, 30 May 2016 16:59:28 +0000 (16:59 +0000)]
Updated Occitan translation

9 years agoUpdated Occitan translation
Cédric Valmary [Mon, 30 May 2016 16:58:07 +0000 (16:58 +0000)]
Updated Occitan translation

9 years agoAdwaita: explicitelly set label caret-color to currentColor
Lapo Calamandrei [Mon, 30 May 2016 12:20:33 +0000 (14:20 +0200)]
Adwaita: explicitelly set label caret-color to currentColor

since it doesn't always inherit 'color' color as it should.

9 years agoAdwaita: make selection on infobars visible
Lapo Calamandrei [Mon, 30 May 2016 11:56:23 +0000 (13:56 +0200)]
Adwaita: make selection on infobars visible

see https://bugzilla.gnome.org/show_bug.cgi?id=745622